﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace FFWinMobile
{
    public partial class frmSettings : Form
    {
        public frmSettings()
        {
            InitializeComponent();
        }

        private void menuItem1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void frmSettings_Load(object sender, EventArgs e)
        {
            nudRecordCount.Value = GF.PageRecordCount;
            cbRememberMe.Checked = GF.RememberMe;
            cbShowPics.Checked = GF.ShowPics;
        }

        private void menuItem2_Click(object sender, EventArgs e)
        {
            System.Windows.Forms.Cursor.Current = Cursors.WaitCursor;
            GF.PageRecordCount = Convert.ToInt32(nudRecordCount.Value);
            GF.RememberMe = cbRememberMe.Checked;
            GF.ShowPics = cbShowPics.Checked;
            this.Close();
            MessageBox.Show(Properties.Resources.SETTINGS_SAVED);
            Cursor.Current = Cursors.Default;

        }
    }
}